package com.ruanjian.api.service.impl;

import com.ruanjian.api.bean.ExperimentFund;
import com.ruanjian.api.mapper.ExperimentFundMapper;
import com.ruanjian.api.service.IExperimentFundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2022-11-22 11:09
 */
@Service
public class ExperimentFundServiceImpl implements IExperimentFundService {

    @Autowired
    ExperimentFundMapper experimentFundMapper;

    @Override
    public int insertSelective(ExperimentFund record) {
        return experimentFundMapper.insertSelective(record);
    }

    @Override
    public List<ExperimentFund> listFundsByUserId(Long userId) {
        return experimentFundMapper.listFundsByUserId(userId);
    }

    @Override
    public List<ExperimentFund> listFundsSelective(ExperimentFund fund) {
        return experimentFundMapper.listFundsSelective(fund);
    }

    @Override
    public List<ExperimentFund> listFundByFundId(ExperimentFund fund) {
        return experimentFundMapper.listFundByFundId(fund);
    }
}
